.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  height: 4rem;
  background-color: #cf0056;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 26);
}

.header h1 {
  color: white;
  font-family: "JetBrains Mono", Serif;
  margin: 0;
}

main {
  margin-top: 5rem;
}

section {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1rem;
}

@media (min-width: 768px) {
  section {
    grid-template-columns: repeat(2, 1fr);
  }
}

.badge {
  display: inline-block;
  margin: 0 0.25rem;
  border-radius: 3px;
  border: 1px solid #cf0056;
  background: #cf0056;
  color: white;
  padding: 0 0.5rem;
  font-family: "Lato", sans-serif;
  font-size: 0.8rem;
}

button,
a {
  font: inherit;
  border: 1px solid #cf0056;
  background: #cf0056;
  padding: 0.5rem 1rem;
  color: white;
  border-radius: 5px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  text-decoration: none;
}

button:focus {
  outline: none;
}

button:hover,
button:active,
a:hover,
a:active {
  background: #e40763;
  border-color: #e40763;
  box-shadow: 1px 1px 8px rgba(77, 51, 51, 0.26);
}

button:disabled,
button:disabled:hover,
button:disabled:active {
  background: #ccc;
  border-color: #ccc;
  color: #959595;
  box-shadow: none;
  cursor: not-allowed;
}

.success {
  background: #01a129;
  border-color: #01a129;
}

.success:hover,
.success:active {
  background: #1ac745;
  border-color: #1ac745;
}

.outline {
  background: transparent;
  color: #cf0056;
  box-shadow: none;
}

.outline:hover,
.outline:active {
  background: #ffc7de;
  box-shadow: none;
}

.outline:disabled,
.outline:disabled:hover,
.outline:disabled:active {
  background: transparent;
  color: #ccc;
}

.outline.success {
  border-color: #01a129;
  color: #01a129;
}

.outline.success:hover,
.outline.success:active {
  background: #c2ffd1;
}

article {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
  border-radius: 5px;
  background: white;
  margin: 1rem;
}

article header,
article .content,
article footer {
  padding: 1rem;
}

article .image {
  width: 100%;
  height: 14rem;
}

article .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

article h1 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
  font-family: "Roboto Slab", sans-serif;
}

article h1.is-favorite {
  background: #01a129;
  color: white;
  padding: 0 0.5rem;
  border-radius: 5px;
}

article h2 {
  font-size: 1rem;
  color: #808080;
  margin: 0.5rem 0;
}

article p {
  font-size: 1.25rem;
  margin: 0;
}

article div {
  text-align: right;
}

article .content {
  height: 4rem;
}

form {
  width: 30rem;
  max-width: 90%;
  margin: auto;
}

input,
textarea {
  display: block;
  width: 100%;
  font: inherit;
  border: none;
  border-bottom: 2px solid #ccc;
  border-radius: 3px 3px 0 0;
  background: white;
  padding: 0.15rem 0.25rem;
  transition: border-color 0.1s ease-out;
}

input:focus,
textarea:focus {
  border-color: #e40763;
  outline: none;
}

.form-control label {
  display: block;
  margin-bottom: 0.5rem;
  width: 100%;
}

.form-control {
  padding: 0.5rem 0;
  width: 100%;
  margin: 0.25rem 0;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10;
}

.modal {
  position: fixed;
  top: 10vh;
  left: 10%;
  width: 80%;
  max-height: 80vh;
  background: white;
  border-radius: 5px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
  overflow: scroll;
}

.modal h1 {
  padding: 1rem;
  margin: 0;
  border-bottom: 1px solid #ccc;
  font-family: "Roboto Slab", sans-serif;
}

.modal .content {
  padding: 1rem;
}

.modal footer {
  padding: 1rem;
}

@media (min-width: 768px) {
  .modal {
    width: 40rem;
    left: calc(50% - 20rem);
  }
}

.hide {
  display: none;
}